import httpUtils from "@/core/utils/http.utils";
// service path
const urls = {
    'getTbsPage':`/api/gen/generator/page`,
    'getDSName':`/api/gen/generator/getDSName`,
    'genForm':`/api/gen/generator/code`,
    'getTabColumn':`/api/gen/generator/getTabColumn`,
};
// service methods
const sysGenCodeApi = {

    getTbsPage (param) {
        return httpUtils.get(urls.getTbsPage, param);
    },

    getDSName () {
        return httpUtils.get(urls.getDSName);
    },

    genForm(param) {
        return httpUtils.downloadUrlMode(urls.genForm, "post",null,param,"zip");
    },

    getTabColumn (param) {
        return httpUtils.get(urls.getTabColumn, param);
    },

};

export default sysGenCodeApi;
